import java.util.Arrays;

public class TwoDimensionalArray_HomeWork07 {
    //7、int[] arr11 = {1, 2, 3, 4,5,6,7,8,9,0,3,2,4,5,6,7,4,32,2,1,1,4,6,3}; 数组去重
    public static void main(String[] args) {
        int[] arr11 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 3, 2, 4, 5, 6, 7, 4, 32, 2, 1, 1, 4, 6, 3};
        int[] newArr = new int[arr11.length];
        int k = 0;
        for (int i = 0; i < arr11.length; i++) {
            boolean fact = true;
            for (int j = i + 1; j < arr11.length; j++) {
                if (arr11[i] == arr11[j]) {
                    fact = false;
                    break;
                }
            }
            if (fact) {
                newArr[k] = arr11[i];
                k++;
            }
        }
        int[] copy = Arrays.copyOf(newArr, k);
        System.out.println(Arrays.toString(copy));
    }
}